package com.yan.job;

import com.yan.domainjob.Man;
import com.yan.domainjob.Person;
import com.yan.domainjob.Woman;

public class Test2 {
    public static void main(String[] args) {
        Person[] person = new Person[2];
        Man man = new Man();
        person[0] = man;
        Woman woman = new Woman();
        person[1] = woman;

        person[0].pee();
        person[1].pee();
    }
}
